{
	"info": {
		"_postman_id": "125ce1e0-be7e-4299-b289-950aa6c22d42",
		"name": "Протокол 1.3 Скорая медицинская помощь",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "48020210",
		"_collection_link": "https://nst-sid-6186244.postman.co/workspace/nst-sid's-Workspace~d2a1dc8f-cae0-4166-807b-dc131f8f29a6/collection/48020210-125ce1e0-be7e-4299-b289-950aa6c22d42?action=share&source=collection_link&creator=48020210"
	},
	"item": [
		{
			"name": "Скорая медицинская помощь",
			"item": [
				{
					"name": "Предварительные условия",
					"item": [
						{
							"name": "Достать врача и организацию из токена врача и добавить в переменную",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"const jwt = pm.request.auth.oauth2.get(\"accessToken\");\r",
											"console.log(jwt);\r",
											"if (jwt) {\r",
											"    let payload = jwt.split('.')[1];\r",
											"    payload = payload.replace(/-/g, '+').replace(/_/g, '/');\r",
											"    while (payload.length % 4) payload += '=';\r",
											"    let decoded = JSON.parse(atob(payload));\r",
											"    console.log(decoded)\r",
											"    let practitionerId = decoded.practitioner_id || decoded.practitionerId || decoded[\"practitioner_id\"];\r",
											"    let organizationId = decoded.organization_id || decoded.organizationId || decoded[\"organization_id\"];\r",
											"    if (practitionerId) pm.environment.set(\"PractitionerId\", practitionerId);\r",
											"    if (organizationId) pm.environment.set(\"OrganizationId\", organizationId);\r",
											"} else {\r",
											"    console.log(\"JWT токен не найден в переменных коллекции\");\r",
											"}"
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"protocolProfileBehavior": {
								"disableBodyPruning": true
							},
							"request": {
								"method": "GET",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.3.4934",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": ""
								},
								"url": {
									"raw": "https://postman-echo.com/get",
									"protocol": "https",
									"host": [
										"postman-echo",
										"com"
									],
									"path": [
										"get"
									]
								}
							},
							"response": []
						},
						{
							"name": "Достать PractitionerRole врача и добавить в переменную",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let practitionerRole = jsonData.entry.find(obj => obj.resource.resourceType === \"PractitionerRole\").resource.id;\r",
											"\r",
											"pm.environment.set(\"PractitionerRole\", practitionerRole);\r",
											"console.log(practitionerRole)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/PractitionerRole?practitioner={{PractitionerId}}",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"PractitionerRole"
									],
									"query": [
										{
											"key": "_id",
											"value": "123456",
											"disabled": true
										},
										{
											"key": null,
											"value": "Location/12345678901234",
											"disabled": true
										},
										{
											"key": "practitioner",
											"value": "{{PractitionerId}}"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Достать структурное подразделение врача и добавить в переменную",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"let json = pm.response.json();\r",
											"let locationValue = null;\r",
											"\r",
											"if (Array.isArray(json.entry)) {\r",
											"    for (let entry of json.entry) {\r",
											"        if (\r",
											"            entry.resource &&\r",
											"            entry.resource.resourceType === \"PractitionerRole\" &&\r",
											"            Array.isArray(entry.resource.location) &&\r",
											"            entry.resource.location.length > 0\r",
											"        ) {\r",
											"            // Берём reference первого location и извлекаем только UUID\r",
											"            let ref = entry.resource.location[0].reference;\r",
											"            if (typeof ref === \"string\" && ref.startsWith(\"Location/\")) {\r",
											"                locationValue = ref.split(\"/\")[1]; // или: ref.replace(\"Location/\", \"\")\r",
											"            }\r",
											"            break;\r",
											"        }\r",
											"    }\r",
											"}\r",
											"\r",
											"if (locationValue) {\r",
											"    pm.environment.set(\"LocationId\", locationValue);\r",
											"    console.log(\"location сохранён:\", locationValue);\r",
											"} else {\r",
											"    console.log(\"location не найден\");\r",
											"}\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/PractitionerRole?practitioner={{PractitionerId}}",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"PractitionerRole"
									],
									"query": [
										{
											"key": "_id",
											"value": "123456",
											"disabled": true
										},
										{
											"key": null,
											"value": "Location/12345678901234",
											"disabled": true
										},
										{
											"key": "practitioner",
											"value": "{{PractitionerId}}"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "1. Пациент имеет ИН, но не зарегистрирован в ЦИСЗ",
					"item": [
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=7551227A009PB2",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "7551227A009PB2"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск лекарственного средства",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Medication?_profile=https://fhir.by/StructureDefinition/DrugComponent&ingredient=3097",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Medication"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/DrugComponent"
										},
										{
											"key": "ingredient",
											"value": "3097",
											"description": "Каптоприл"
										},
										{
											"key": "ingredient",
											"value": "Acetylsalicylic acid",
											"description": "Ацетилсалициловая кислота/Аспирин",
											"disabled": true
										},
										{
											"key": "ingredient",
											"value": "нитроглицерин",
											"description": "Нитроглицерин ",
											"disabled": true
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск структурного подразделения",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Location?name=Филиал №2 «Заславская городская больница», поликлиника взрослая",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Location"
									],
									"query": [
										{
											"key": "name",
											"value": "Филиал №2 «Заславская городская больница», поликлиника взрослая"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод импорта пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleEpisodeOfEmergencyCareWithID1\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"{{$isoTimestamp}}\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionBundleEpisode1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionBundleEpisode1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-11-07\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument об эпизоде оказания скорой медицинской помощи\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelAttEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ArterialEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Kaptopr\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Aspir\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Nitrogl\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/ExampleEpisodeOfEmergencyCare1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Сидорович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551227A009PB2\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 21.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2022-08-21\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"version\": \"1.3\",\r\n                                                    \"code\": \"Minsk\",\r\n                                                    \"display\": \"Минск\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"version\": \"1.10\",\r\n                                    \"code\": \"Passport-RB\",\r\n                                    \"display\": \"Паспорт гражданина Республики Беларусь\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MP1233212\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375123456789\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1990-12-31\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.51\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.3\",\r\n                                            \"code\": \"517030229743858774\",\r\n                                            \"display\": \"Минск, г. Минск, Улица Уручская, д. 23 к.2\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 101\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"г. Минск, Улица Уручская\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"version\": \"1.51\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"version\": \"1.3\",\r\n                                            \"code\": \"517030229743858774\",\r\n                                            \"display\": \"Минск, г. Минск, Улица Уручская, д. 23 к.1201\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 1201\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"г. Минск, Улица Уручская\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"I20.0\",\r\n                            \"display\": \"I20.0 - Нестабильная стенокардия\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"I20.0 - Нестабильная стенокардия\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-07\",\r\n                \"recordedDate\": \"2025-11-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Нестабильная стенокардия?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelAttEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelAttEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J04.2\",\r\n                            \"display\": \"J04.2 - Острый ларинготрахеит\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-07\",\r\n                \"recordedDate\": \"2025-11-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Острый ларинготрахеит?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/SPO2Ep1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"SPO2Ep1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"spO2\",\r\n                            \"display\": \"Сатурация крови кислородом\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 97,\r\n                    \"unit\": \"%\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"%\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/HeartRateEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"HeartRateEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"heart-rate\",\r\n                            \"display\": \"Частота сердечных сокращений\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 95,\r\n                    \"unit\": \"в минуту\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"/min\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/BodyTemperatureEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"BodyTemperatureEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"body-temperature\",\r\n                            \"display\": \"Температура тела\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 36.6,\r\n                    \"unit\": \"°C\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"Cel\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ArterialEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ArterialEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"arterial-blood-pressure\",\r\n                            \"display\": \"Артериальное давление\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"component\": [\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"systolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 160,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"diastolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 95,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObjectiveEp1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObjectiveEp1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationObjective\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"exam\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/ObservationObjectiveCode\",\r\n                            \"code\": \"cardiovascular\",\r\n                            \"display\": \"Сердечно-сосудистая система\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"issued\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueString\": \"Аускультация сердца: ритмичное с акцентом на верхушке, систолический шум отсутствует.\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"MedicationRequest/ExampleMedicationOrderEp1Kaptopr\",\r\n            \"resource\": {\r\n                \"resourceType\": \"MedicationRequest\",\r\n                \"id\": \"ExampleMedicationOrderEp1Kaptopr\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicationOrder\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"intent\": \"order\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/CourseOfTherapyType\",\r\n                                \"code\": \"short-term\",\r\n                                \"display\": \"Оказание неотложной медицинской помощи\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"medication\": {\r\n                    \"reference\": {\r\n                        \"reference\": \"Medication/38a1dd49-a1de-4901-8e35-b778c8c7e492\"\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"informationSource\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"authoredOn\": \"2025-11-07T00:00:00Z\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisPrelEp1\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"effectiveDosePeriod\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                },\r\n                \"dosageInstruction\": [\r\n                    {\r\n                        \"patientInstruction\": \"Каптоприл 25 мг назначен для купирования гипертензии, выявленной на приеме (АД 160/95 мм рт. ст.)\",\r\n                        \"route\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationRouteAdmin\",\r\n                                    \"code\": \"048\",\r\n                                    \"display\": \"для приема внутрь\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"doseAndRate\": [\r\n                            {\r\n                                \"doseQuantity\": {\r\n                                    \"value\": 25,\r\n                                    \"unit\": \"мг\",\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationByUnits\",\r\n                                    \"code\": \"mg\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"MedicationRequest/ExampleMedicationOrderEp1Aspir\",\r\n            \"resource\": {\r\n                \"resourceType\": \"MedicationRequest\",\r\n                \"id\": \"ExampleMedicationOrderEp1Aspir\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicationOrder\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"intent\": \"order\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/CourseOfTherapyType\",\r\n                                \"code\": \"short-term\",\r\n                                \"display\": \"Оказание неотложной медицинской помощи\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"medication\": {\r\n                    \"reference\": {\r\n                        \"reference\": \"Medication/224e4334-62be-4a39-b638-a7c03c2b9cb8\"\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"informationSource\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"authoredOn\": \"2025-11-07T00:00:00Z\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisPrelEp1\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"effectiveDosePeriod\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                },\r\n                \"dosageInstruction\": [\r\n                    {\r\n                        \"patientInstruction\": \"Ацетилсалициловая кислота назначен с целью антитромбоцитарной терапии в нагрузочной дозе 125 мг\",\r\n                        \"route\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationRouteAdmin\",\r\n                                    \"code\": \"048\",\r\n                                    \"display\": \"для приема внутрь\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"doseAndRate\": [\r\n                            {\r\n                                \"doseQuantity\": {\r\n                                    \"value\": 125,\r\n                                    \"unit\": \"мг\",\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationByUnits\",\r\n                                    \"code\": \"mg\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"MedicationRequest/ExampleMedicationOrderEp1Nitrogl\",\r\n            \"resource\": {\r\n                \"resourceType\": \"MedicationRequest\",\r\n                \"id\": \"ExampleMedicationOrderEp1Nitrogl\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicationOrder\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"intent\": \"order\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/CourseOfTherapyType\",\r\n                                \"code\": \"short-term\",\r\n                                \"display\": \"Оказание неотложной медицинской помощи\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"medication\": {\r\n                    \"reference\": {\r\n                        \"reference\": \"Medication/36d0a4bd-d136-402b-892c-30aaccbc6812\"\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"informationSource\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"authoredOn\": \"2025-11-07T00:00:00Z\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisPrelEp1\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"effectiveDosePeriod\": {\r\n                    \"start\": \"2025-05-07\",\r\n                    \"end\": \"2025-05-07\"\r\n                },\r\n                \"dosageInstruction\": [\r\n                    {\r\n                        \"patientInstruction\": \"Нитроглицерин в дозе 0,5 мг назначен для купирования болевого синдрома ишемического характера, под контролем артериального давления\",\r\n                        \"route\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationRouteAdmin\",\r\n                                    \"code\": \"060\",\r\n                                    \"display\": \"подъязычный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"doseAndRate\": [\r\n                            {\r\n                                \"doseQuantity\": {\r\n                                    \"value\": 0.5,\r\n                                    \"unit\": \"мг\",\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationByUnits\",\r\n                                    \"code\": \"mg\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleEpisodeOfEmergencyCare1\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleEpisodeOfEmergencyCare1\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyTime\",\r\n                        \"valueDateTime\": \"2025-05-07T00:00:00Z\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallClassification\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CallClassificationEmergCare\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"Первичный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallAddress\",\r\n                        \"valueAddress\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                    \"valueCodeableConcept\": {\r\n                                        \"coding\": [\r\n                                            {\r\n                                                \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                                \"code\": \"726099207786084259\",\r\n                                                \"display\": \"11\"\r\n                                            }\r\n                                        ]\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"text\": \"Могилевская область, г. Могилев, Переулок Снежный, д.11\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfTraumaEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfTraumaGeneral\",\r\n                                    \"code\": \"disease-not-injury\",\r\n                                    \"display\": \"заболевание (состояние) не связанное с травмой\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/FromOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Organization/6073bd4e-6950-46b0-97d0-06146ca0484f\",\r\n                                    \"display\": \"Учреждение здравоохранения \\\"Минская центральная районная клиническая больница\\\"\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/LocationPartOfOrganization\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Location/5af91ccf-d453-49dc-9cd9-12a092f46899\",\r\n                                    \"display\": \"Филиал №2 «Заславская городская больница», поликлиника взрослая\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientTransferDetails\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                \"valueString\": \"ABC 123456789\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                \"valueDate\": \"2025-01-01\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-01-01\",\r\n                                    \"end\": \"2025-12-31\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                \"valueString\": \"Белгосстрах\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ResultVisitingEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ResultEmergencyCare\",\r\n                                    \"code\": \"taken-hospital\",\r\n                                    \"display\": \"Доставлен в стационар\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ArterialEp1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareString\",\r\n                                \"valueString\": \"Выполнена ЭКГ: синусовый ритм, признаки ишемии: депрессия сегмента ST на отведениях V4-V6, без патологических Q\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCare\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvided\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EmergencyCareProvided\",\r\n                                            \"code\": \"inhalation\",\r\n                                            \"display\": \"Ингаляция\"\r\n                                        }\r\n                                    ],\r\n                                    \"text\": \"Кислород 3 л/мин\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityMedicines\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Kaptopr\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityMedicines\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Aspir\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityMedicines\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp1Nitrogl\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvidedMedicines\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Team-call-card-number\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"01210\"\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Number-team\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"0124\"\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/EmergencyCrewType\",\r\n                                \"code\": \"line\",\r\n                                \"display\": \"фельдшерская\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EmergencyCallCategory\",\r\n                                    \"code\": \"immediate\",\r\n                                    \"display\": \"неотложный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/ImmediatlyCallReason\",\r\n                                            \"code\": \"abdomen-back-chest-pain\",\r\n                                            \"display\": \"боль в животе, спине, грудной клетке\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"concept\": {\r\n                                    \"text\": \"Нестабильная стенокардия на фоне АГ\"\r\n                                },\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp1\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelAttEp1\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/$import",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод получения статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=7551227A009PB2",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "7551227A009PB2"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод проверки наличия эпизода оказания скорой медицинской помощи",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare&patient={{patientId}}",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare"
										},
										{
											"key": "patient",
											"value": "{{patientId}}"
										},
										{
											"key": "identifier",
											"value": "12345687",
											"disabled": true
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение сводной информации о пациенте",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/$everything?start=2025-09&end=2025-11",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"$everything"
									],
									"query": [
										{
											"key": "start",
											"value": "2025-09"
										},
										{
											"key": "end",
											"value": "2025-11"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "2. Пациент имеет ИН и зарегистрирован в ЦИСЗ",
					"item": [
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=7551245A009PB0",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "7551245A009PB0"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск законного представителя пациента",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/RelatedPerson?_profile=https://fhir.by/StructureDefinition/RelatedPersonPermanentBy&_sort=-_lastUpdated",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"RelatedPerson"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/RelatedPersonPermanentBy"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск лекарственного средства",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Medication?_profile=https://fhir.by/StructureDefinition/DrugComponent&ingredient=1187",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Medication"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/DrugComponent"
										},
										{
											"key": "ingredient",
											"value": "1187",
											"description": "будесонид"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод импорта пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									},
									{
										"key": "X-Fhir-By-Version",
										"value": "latest",
										"type": "text",
										"disabled": true
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleEpisodeOfEmergencyCareWithID2\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"{{$isoTimestamp}}\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionBundleEpisode2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionBundleEpisode2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-11-07\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument об эпизоде оказания скорой медицинской помощи\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelAttEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/RespiratoryRateEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/ExampleEpisodeOfEmergencyCare2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/IncapacityExtension\",\r\n                        \"valueBoolean\": false\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean\",\r\n                                \"valueBoolean\": true\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2024-02-01\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ConsentPersonalData\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PatientBirthDateTime\",\r\n                        \"valueDateTime\": \"2024-01-01T11:00:01Z\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"INP\",\r\n                                    \"display\": \"Уникальный идентификационный номер\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"7551245A009PB0\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 2024-02-18\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2024-02-18\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\",\r\n                                    \"display\": \"Паспорт гражданина Республики Беларусь\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MN1122332\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Семенова\",\r\n                        \"given\": [\r\n                            \"Анастасия\",\r\n                            \"Петровна\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"female\",\r\n                \"birthDate\": \"2024-01-01\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ],\r\n                \"contact\": [\r\n                    {\r\n                        \"relationship\": [\r\n                            {\r\n                                \"coding\": [\r\n                                    {\r\n                                        \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                        \"code\": \"father\"\r\n                                    }\r\n                                ]\r\n                            }\r\n                        ],\r\n                        \"name\": {\r\n                            \"family\": \"Семенов\",\r\n                            \"given\": [\r\n                                \"Петр\",\r\n                                \"Иванович\"\r\n                            ]\r\n                        },\r\n                        \"telecom\": [\r\n                            {\r\n                                \"system\": \"phone\",\r\n                                \"value\": \"80295478831\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"RelatedPerson/ExampleRelatedPersonEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"RelatedPerson\",\r\n                \"id\": \"ExampleRelatedPersonEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/RelatedPersonPermanentBy\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 11.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-11\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MO1234579\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"relationship\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                \"code\": \"father\",\r\n                                \"display\": \"отец\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Семенов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Иванович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375172000669\",\r\n                        \"period\": {\r\n                            \"start\": \"2025-01-31\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1985-01-31\",\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"home\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J04.2\",\r\n                            \"display\": \"J04.2 - Острый ларинготрахеит\"\r\n                        }\r\n                    ],\r\n                    \"text\": \"J04.2 - Острый ларинготрахеит\"\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-07\",\r\n                \"recordedDate\": \"2025-11-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Острый ларинготрахеит?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelAttEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelAttEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"J06.9\",\r\n                            \"display\": \"J06.9 - Острая инфекция верхних дыхательных путей неуточненная\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-07\",\r\n                \"recordedDate\": \"2025-11-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Острая инфекция верхних дыхательных путей неуточненная?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/SPO2Ep2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"SPO2Ep2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"spO2\",\r\n                            \"display\": \"Сатурация крови кислородом\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 98,\r\n                    \"unit\": \"%\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"%\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/HeartRateEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"HeartRateEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"heart-rate\",\r\n                            \"display\": \"Частота сердечных сокращений\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 110,\r\n                    \"unit\": \"в минуту\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"/min\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/BodyTemperatureEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"BodyTemperatureEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"body-temperature\",\r\n                            \"display\": \"Температура тела\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 38,\r\n                    \"unit\": \"°C\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"Cel\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/RespiratoryRateEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"RespiratoryRateEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"respiratory-rate\",\r\n                            \"display\": \"Частота дыхания\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 35,\r\n                    \"unit\": \"в минуту\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"/min\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObjectiveEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObjectiveEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationObjective\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"exam\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/ObservationObjectiveCode\",\r\n                            \"code\": \"respiratory\",\r\n                            \"display\": \"Дыхательная система\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"issued\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueString\": \"Инспираторная одышка, дыхание шумное, «лающий» кашель, хрипов нет.\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"MedicationRequest/ExampleMedicationOrderEp2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"MedicationRequest\",\r\n                \"id\": \"ExampleMedicationOrderEp2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicationOrder\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"intent\": \"order\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/CourseOfTherapyType\",\r\n                                \"code\": \"short-term\",\r\n                                \"display\": \"Оказание неотложной медицинской помощи\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"medication\": {\r\n                    \"reference\": {\r\n                        \"reference\": \"Medication/6f04473c-63d8-4383-88fb-5eebbb44ce6e\"\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"informationSource\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"authoredOn\": \"2025-11-07T00:00:00Z\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisPrelEp2\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"effectiveDosePeriod\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                },\r\n                \"dosageInstruction\": [\r\n                    {\r\n                        \"patientInstruction\": \"Будесонид суспензия 0,25 мг/2 мл\",\r\n                        \"route\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationRouteAdmin\",\r\n                                    \"code\": \"078\",\r\n                                    \"display\": \"ингаляционный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"doseAndRate\": [\r\n                            {\r\n                                \"doseQuantity\": {\r\n                                    \"value\": 2,\r\n                                    \"unit\": \"мл\",\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationByUnits\",\r\n                                    \"code\": \"mL\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleEpisodeOfEmergencyCare2\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleEpisodeOfEmergencyCare2\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyTime\",\r\n                        \"valueDateTime\": \"2025-11-07T00:00:00Z\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallClassification\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CallClassificationEmergCare\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"Первичный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallAddress\",\r\n                        \"valueAddress\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                    \"valueCodeableConcept\": {\r\n                                        \"coding\": [\r\n                                            {\r\n                                                \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                                \"code\": \"726099207786084259\",\r\n                                                \"display\": \"11\"\r\n                                            }\r\n                                        ]\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"text\": \"Могилевская область, г. Могилев, Переулок Снежный, д.11\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/RefusalTransferOrMedical\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/RefusalHospitalization\",\r\n                                            \"code\": \"legal-representative\",\r\n                                            \"display\": \"Письменный отказ от госпитализации получен от законного представителя\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/RefusalTransferOtherPerson\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"RelatedPerson/ExampleRelatedPersonEp2\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/OptionsForRefusing\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                \"valueString\": \"ABC 123456788\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                \"valueDate\": \"2025-01-01\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-01-01\",\r\n                                    \"end\": \"2025-12-31\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                \"valueString\": \"Белгосстрах\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfTraumaEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfTraumaGeneral\",\r\n                                    \"code\": \"disease-not-injury\",\r\n                                    \"display\": \"заболевание (состояние) не связанное с травмой\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ResultVisitingEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ResultEmergencyCare\",\r\n                                    \"code\": \"left-in-place\",\r\n                                    \"display\": \"Оставлен на месте\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/RespiratoryRateEp2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareString\",\r\n                                \"valueString\": \"ЭКГ:ритмсинусовый,правильный,синусоваятахикардия\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCare\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvided\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EmergencyCareProvided\",\r\n                                            \"code\": \"nebulizer-therapy\",\r\n                                            \"display\": \"Небулайзерная терапия\"\r\n                                        }\r\n                                    ],\r\n                                    \"text\": \"Будесонид(суспензия 0,25 мг/2мл)\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityMedicines\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp2\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvidedMedicines\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Team-call-card-number\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"031\"\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Number-team\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"022\"\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/EmergencyCrewType\",\r\n                                \"code\": \"pediatric\",\r\n                                \"display\": \"педиатрическая\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EmergencyCallCategory\",\r\n                                    \"code\": \"emergency\",\r\n                                    \"display\": \"экстренный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EmergencyCallReason\",\r\n                                            \"code\": \"respiratory-distress\",\r\n                                            \"display\": \"острые нарушения дыхания\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"concept\": {\r\n                                    \"text\": \"Острый ларинготрахеит\"\r\n                                },\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp2\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"additionalDiagnosis\",\r\n                                                    \"display\": \"Сопутствующий диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelAttEp2\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/$import",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод получения статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод проверки наличия эпизода оказания скорой медицинской помощи",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare&_sort=-_lastUpdated",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение сводной информации о пациенте",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/$everything?start=2025-09&end=2025-11",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"$everything"
									],
									"query": [
										{
											"key": "start",
											"value": "2025-09"
										},
										{
											"key": "end",
											"value": "2025-11"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "3. Пациент не имеет ИН и не зарегистрирован в ЦИСЗ",
					"item": [
						{
							"name": "Метод импорта пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.2.2639",
										"type": "text",
										"disabled": true
									},
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleEpisodeOfEmergencyCareWithoutID3\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"{{$isoTimestamp}}\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionBundleEpisode3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionBundleEpisode3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientBundleEp3\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-11-07T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument об эпизоде оказания скорой медицинской помощи\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"RelatedPerson/ExampleRelatedPersonTempEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ArterialBloodPressureEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/ExampleEpisodeOfCare3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientBundleEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientBundleEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithoutIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"temp\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"UMD\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"U555\",\r\n                        \"assigner\": {   \r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Михайлович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1980-01-01\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"RelatedPerson/ExampleRelatedPersonTempEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"RelatedPerson\",\r\n                \"id\": \"ExampleRelatedPersonTempEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/RelatedPersonTemporaryBy\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 11.08.2021\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2021-08-11\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedCode\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/OCAM\",\r\n                                                    \"code\": \"106\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PassportIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"usual\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"Passport-RB\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MO1234555\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"relationship\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/RelatedPersonType\",\r\n                                \"code\": \"son\",\r\n                                \"display\": \"сын\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Петрович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"telecom\": [\r\n                    {\r\n                        \"system\": \"phone\",\r\n                        \"value\": \"+375172000669\"\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"2000-01-01\",\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"R04.0\",\r\n                            \"display\": \"R04.0 - Носовое кровотечение\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-07\",\r\n                \"recordedDate\": \"2025-11-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Носовое кровотечение?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/SPO2Ep3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"SPO2Ep3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"spO2\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 97,\r\n                    \"unit\": \"%\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"%\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/HeartRateEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"HeartRateEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"heart-rate\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 75,\r\n                    \"unit\": \"в минуту\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"/min\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ArterialBloodPressureEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ArterialBloodPressureEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"registered\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"arterial-blood-pressure\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"component\": [\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"systolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 120,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"diastolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 75,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObjectiveEp3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObjectiveEp3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationObjective\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"exam\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/ObservationObjectiveCode\",\r\n                            \"code\": \"nasopharynx\",\r\n                            \"display\": \"Носоглотка\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-11-07T11:12:21Z\",\r\n                \"issued\": \"2025-11-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueString\": \"Кровотечение из переднего отдела носовой перегородки. Кровотечение умеренное, преимущественно из правой ноздри. Сгустков в носоглотке нет.\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleEpisodeOfCare3\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleEpisodeOfCare3\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyTime\",\r\n                        \"valueDateTime\": \"2025-11-07T11:12:21Z\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallClassification\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CallClassificationEmergCare\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"Первичный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallAddress\",\r\n                        \"valueAddress\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                    \"valueCodeableConcept\": {\r\n                                        \"coding\": [\r\n                                            {\r\n                                                \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                                \"code\": \"726099207786084259\",\r\n                                                \"display\": \"11\"\r\n                                            }\r\n                                        ]\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"text\": \"Могилевская область, г. Могилев, Переулок Снежный, д.11\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/RefusalTransferOrMedical\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/RefusalHospitalization\",\r\n                                            \"code\": \"contact-person\",\r\n                                            \"display\": \"Письменный отказ от госпитализации получен от контактного лица\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/RefusalTransferOtherPerson\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"RelatedPerson/ExampleRelatedPersonTempEp3\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/OptionsForRefusing\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfTraumaEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfTraumaGeneral\",\r\n                                    \"code\": \"disease-not-injury\",\r\n                                    \"display\": \"заболевание (состояние) не связанное с травмой\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ResultVisitingEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ResultEmergencyCare\",\r\n                                    \"code\": \"left-in-place\",\r\n                                    \"display\": \"Оставлен на месте\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep3\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/HeartRateEp3\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ArterialBloodPressureEp3\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp3\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCare\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvided\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EmergencyCareProvided\",\r\n                                            \"code\": \"stopping-bleeding\",\r\n                                            \"display\": \"Остановка кровотечения\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvidedMedicines\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Team-call-card-number\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"998\"\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Number-team\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"116\"\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/EmergencyCrewType\",\r\n                                \"code\": \"line\",\r\n                                \"display\": \"фельдшерская\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EmergencyCallCategory\",\r\n                                    \"code\": \"immediate\",\r\n                                    \"display\": \"неотложный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/ImmediatlyCallReason\",\r\n                                            \"code\": \"bleeding\",\r\n                                            \"display\": \"кровотечение (желудочно-кишечное, маточное, носовое)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"concept\": {\r\n                                    \"text\": \"Носовое кровотечение\"\r\n                                },\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp3\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientBundleEp3\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-11-07\",\r\n                    \"end\": \"2025-11-07\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/$import",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод получения статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=U555",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "U555"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод проверки наличия эпизода оказания скорой медицинской помощи",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare&_sort=-_lastUpdated",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение сводной информации о пациенте",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/$everything?start=2025-09&end=2025-11",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"$everything"
									],
									"query": [
										{
											"key": "start",
											"value": "2025-09"
										},
										{
											"key": "end",
											"value": "2025-11"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "4. Пациент не имеет ИН и зарегистрирован в ЦИСЗ",
					"item": [
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=142536789456",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "142536789456"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Поиск лекарственного средства",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Medication?_profile=https://fhir.by/StructureDefinition/DrugComponent&ingredient=B05BB01",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Medication"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/DrugComponent"
										},
										{
											"key": "ingredient",
											"value": "B05BB01"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод импорта пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.2.2639",
										"type": "text",
										"disabled": true
									},
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"BundleEpisodeOfEmergencyCareWithoutID4\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"{{$isoTimestamp}}\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionBundleEpisode4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionBundleEpisode4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientBundleEp4\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-05-07T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument об эпизоде оказания скорой медицинской помощи\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/PulseRateEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ArterialBloodPressureEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/GlucoseLevelEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/GlucoseLevelEp5\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp5\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/ExampleEpisodeOfCare4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientBundleEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientBundleEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithoutIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Паспорт гражданина Германии, дата выдачи 2018-06-07\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2018-06-07\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/IssuedCountry\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                                    \"code\": \"DE\",\r\n                                                    \"display\": \"Германия\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ForeignDocumentIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"official\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"FDN\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"142536789456\",\r\n                        \"period\": {\r\n                            \"start\": \"2023-01-31\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedString\",\r\n                                        \"valueString\": \"Центральным РУВД г Минска, 22.05.2023\"\r\n                                    },\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/PassportIssuedDate\",\r\n                                        \"valueDate\": \"2023-05-22\"\r\n                                    }\r\n                                ],\r\n                                \"url\": \"https://fhir.by/StructureDefinition/DocumentIssued\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"official\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"RCN\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"UB3241533\"\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Фишер\",\r\n                        \"given\": [\r\n                            \"Франк\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1980-01-01\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-05-07\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"E16.2\",\r\n                            \"display\": \"E16.2 - Гипогликемия неуточненная\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"onsetDateTime\": \"2025-05-07\",\r\n                \"recordedDate\": \"2025-05-07\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Гипогликемия неуточненная?\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/BodyTemperatureEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"BodyTemperatureEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"body-temperature\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 36.6,\r\n                    \"unit\": \"°C\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"Cel\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/SPO2Ep4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"SPO2Ep4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"spO2\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 97,\r\n                    \"unit\": \"%\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"%\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/PulseRateEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"PulseRateEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"pulse-rate\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 95,\r\n                    \"unit\": \"в минуту\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"/min\"\r\n                }\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ArterialBloodPressureEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ArterialBloodPressureEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"registered\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"arterial-blood-pressure\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"component\": [\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"systolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 130,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"code\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                                    \"code\": \"diastolic-arterial-blood-pressure\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"valueQuantity\": {\r\n                            \"value\": 75,\r\n                            \"unit\": \"mm[Hg]\",\r\n                            \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                            \"code\": \"mm[Hg]\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/GlucoseLevelEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"GlucoseLevelEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"glucose-level\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 2.8,\r\n                    \"unit\": \"ммоль/л\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"mmol/L\"\r\n                },\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Уровень глюкозы до оказанной помощи\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/GlucoseLevelEp5\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"GlucoseLevelEp5\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/VitalSignsBy\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"vital-signs\",\r\n                                \"userSelected\": false\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/VitalSignsCodes\",\r\n                            \"code\": \"glucose-level\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueQuantity\": {\r\n                    \"value\": 5.3,\r\n                    \"unit\": \"ммоль/л\",\r\n                    \"system\": \"https://fhir.by/ValueSet/UnitsOfMeasureBy\",\r\n                    \"code\": \"mmol/L\"\r\n                },\r\n                \"note\": [\r\n                    {\r\n                        \"text\": \"Уровень глюкозы после оказанной помощи\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObjectiveEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObjectiveEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationObjective\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"exam\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/ObservationObjectiveCode\",\r\n                            \"code\": \"nervous\",\r\n                            \"display\": \"Нервная система\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"issued\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueString\": \"Сознание сохранено, ориентирован, выраженная слабость\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Observation/ExampleObjectiveEp5\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Observation\",\r\n                \"id\": \"ExampleObjectiveEp5\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/ObservationObjective\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/ObservationCategoryCode\",\r\n                                \"code\": \"exam\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/ObservationObjectiveCode\",\r\n                            \"code\": \"skin\",\r\n                            \"display\": \"Кожный покров\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"effectiveDateTime\": \"2025-05-07T11:12:21Z\",\r\n                \"issued\": \"2025-05-07T11:12:21Z\",\r\n                \"performer\": [\r\n                    {\r\n                        \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                    }\r\n                ],\r\n                \"valueString\": \"Кожные покровы влажные, холодные\"\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"MedicationRequest/ExampleMedicationOrderEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"MedicationRequest\",\r\n                \"id\": \"ExampleMedicationOrderEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/MedicationOrder\"\r\n                    ]\r\n                },\r\n                \"status\": \"completed\",\r\n                \"intent\": \"order\",\r\n                \"category\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/CourseOfTherapyType\",\r\n                                \"code\": \"short-term\",\r\n                                \"display\": \"Оказание неотложной медицинской помощи\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"medication\": {\r\n                    \"reference\": {\r\n                        \"reference\": \"Medication/e74a9964-f040-42f2-9a33-94672c391812\"\r\n                    }\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"informationSource\": [\r\n                    {\r\n                        \"reference\": \"Organization/{{OrganizationId}}\"\r\n                    }\r\n                ],\r\n                \"authoredOn\": \"2025-05-07T11:12:21Z\",\r\n                \"requester\": {\r\n                    \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                },\r\n                \"reason\": [\r\n                    {\r\n                        \"reference\": {\r\n                            \"reference\": \"Condition/ExampleDiagnosisPrelEp4\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"effectiveDosePeriod\": {\r\n                    \"start\": \"2025-05-07\",\r\n                    \"end\": \"2025-05-07\"\r\n                },\r\n                \"dosageInstruction\": [\r\n                    {\r\n                        \"patientInstruction\": \"Назначен раствор Электролитов 400 мл\",\r\n                        \"route\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationRouteAdmin\",\r\n                                    \"code\": \"042\",\r\n                                    \"display\": \"внутривенный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"doseAndRate\": [\r\n                            {\r\n                                \"doseQuantity\": {\r\n                                    \"value\": 400,\r\n                                    \"unit\": \"мл\",\r\n                                    \"system\": \"https://fhir.by/ValueSet/MedicationByUnits\",\r\n                                    \"code\": \"mL\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleEpisodeOfCare4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleEpisodeOfCare4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyTime\",\r\n                        \"valueDateTime\": \"2025-05-07T11:12:21Z\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallClassification\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CallClassificationEmergCare\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"Первичный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallAddress\",\r\n                        \"valueAddress\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                    \"valueCodeableConcept\": {\r\n                                        \"coding\": [\r\n                                            {\r\n                                                \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                                \"code\": \"726099207786084259\",\r\n                                                \"display\": \"11\"\r\n                                            }\r\n                                        ]\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"text\": \"Могилевская область, г. Могилев, Переулок Снежный, д.11\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsurancePolicyNumber\",\r\n                                \"valueString\": \"ABC 123456789\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/DateIssueInsurancePolicy\",\r\n                                \"valueDate\": \"2025-01-01\"\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PeriodTemporaryInsurancePolicy\",\r\n                                \"valuePeriod\": {\r\n                                    \"start\": \"2025-01-01\",\r\n                                    \"end\": \"2025-12-31\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/InsuranceOrganization\",\r\n                                \"valueString\": \"Белгосстрах\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/HealthInsurance\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfTraumaEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfTraumaGeneral\",\r\n                                    \"code\": \"disease-not-injury\",\r\n                                    \"display\": \"заболевание (состояние) не связанное с травмой\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ResultVisitingEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ResultEmergencyCare\",\r\n                                    \"code\": \"left-in-place\",\r\n                                    \"display\": \"Оставлен на месте\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/BodyTemperatureEp4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/SPO2Ep4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/PulseRateEp4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ArterialBloodPressureEp4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/GlucoseLevelEp4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/GlucoseLevelEp5\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp4\"\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareReference\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"Observation/ExampleObjectiveEp5\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCare\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityMedicines\",\r\n                                \"valueReference\": {\r\n                                    \"reference\": \"MedicationRequest/ExampleMedicationOrderEp4\"\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyCareProvidedMedicines\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Team-call-card-number\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"214\"\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Number-team\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"118\"\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/EmergencyCrewType\",\r\n                                \"code\": \"line\",\r\n                                \"display\": \"фельдшерская\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EmergencyCallCategory\",\r\n                                    \"code\": \"immediate\",\r\n                                    \"display\": \"неотложный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/ImmediatlyCallReason\",\r\n                                            \"code\": \"health-deterioration\",\r\n                                            \"display\": \"ухудшение состояния здоровья (при невозможности уточнения состояния)\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"concept\": {\r\n                                    \"text\": \"Гипогликемия неуточненная\"\r\n                                },\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientBundleEp4\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-05-07\",\r\n                    \"end\": \"2025-05-07\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/$import",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод получения статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод проверки наличия эпизода оказания скорой медицинской помощи",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare&_sort=-_lastUpdated",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение сводной информации о пациенте",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/$everything?start=2025-09&end=2025-11",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"$everything"
									],
									"query": [
										{
											"key": "start",
											"value": "2025-09"
										},
										{
											"key": "end",
											"value": "2025-11"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "5. Пациент не имеет ИН и зарегистрирован в ЦИЗ (смерть до приезда СПМ)",
					"item": [
						{
							"name": "Поиск пациента по идентификатору",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"var jsonData = pm.response.json();\r",
											"let patientId = jsonData.entry.find(obj => obj.resource.resourceType === \"Patient\").resource.id;\r",
											"\r",
											"pm.environment.set(\"patientId\", patientId);\r",
											"console.log(patientId)"
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient?identifier=MM1122321",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient"
									],
									"query": [
										{
											"key": "identifier",
											"value": "MM1122321"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод импорта пакета медицинской информации",
							"event": [
								{
									"listen": "test",
									"script": {
										"exec": [
											"pm.test(\"Валидный бандл должен отработать со статусом 202\", function () {\r",
											"    pm.response.to.have.status(202);\r",
											"});\r",
											"\r",
											"var jsonData = pm.response.json();\r",
											"let bundleId = jsonData.parameter.find(obj => obj.name === \"ResourceId\").valueString;\r",
											"let statusReference = jsonData.parameter.find(obj => obj.name === \"OperationStatusReference\");\r",
											"\r",
											"console.log(statusReference.valueReference.reference);\r",
											"\r",
											"pm.collectionVariables.set(\"bundleId\", bundleId);\r",
											"pm.collectionVariables.set(\"StatusUrl\", statusReference.valueReference.reference);\r",
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								},
								{
									"listen": "prerequest",
									"script": {
										"exec": [
											""
										],
										"type": "text/javascript",
										"packages": {},
										"requests": {}
									}
								}
							],
							"request": {
								"method": "POST",
								"header": [
									{
										"key": "X-Fhir-By-Version",
										"value": "0.2.2639",
										"type": "text",
										"disabled": true
									},
									{
										"key": "X-Fhir-By-Version",
										"value": "active",
										"type": "text"
									}
								],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"resourceType\": \"Bundle\",\r\n    \"id\": \"ExampleBundleForDemo\",\r\n    \"meta\": {\r\n        \"profile\": [\r\n            \"https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument\"\r\n        ]\r\n    },\r\n    \"identifier\": {\r\n        \"system\": \"urn:ietf:rfc:3986\",\r\n        \"value\": \"{{$guid}}\"\r\n    },\r\n    \"type\": \"document\",\r\n    \"timestamp\": \"{{$isoTimestamp}}\",\r\n    \"entry\": [\r\n        {\r\n            \"fullUrl\": \"Composition/CompositionBundleEpisode4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Composition\",\r\n                \"id\": \"CompositionBundleEpisode4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/CompDocument\"\r\n                    ]\r\n                },\r\n                \"status\": \"final\",\r\n                \"type\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/CompositionType\",\r\n                            \"code\": \"general\",\r\n                            \"display\": \"Общая медицинская информация\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": [\r\n                    {\r\n                        \"reference\": \"Patient/PatientTest\"\r\n                    }\r\n                ],\r\n                \"date\": \"2025-11-11T11:12:21Z\",\r\n                \"author\": [\r\n                    {\r\n                        \"reference\": \"Practitioner/{{PractitionerId}}\"\r\n                    }\r\n                ],\r\n                \"title\": \"CompDocument об эпизоде оказания скорой медицинской помощи\",\r\n                \"custodian\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\"\r\n                },\r\n                \"event\": [\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    },\r\n                    {\r\n                        \"detail\": [\r\n                            {\r\n                                \"reference\": {\r\n                                    \"reference\": \"EpisodeOfCare/ExampleEpisodeOfCare4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Patient/PatientTest\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Patient\",\r\n                \"id\": \"PatientTest\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/PatientWithoutIdentificationNumber\"\r\n                    ]\r\n                },\r\n                \"identifier\": [\r\n                    {\r\n                        \"use\": \"temp\",\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/PersonalDocumentType\",\r\n                                    \"code\": \"FDN\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"MM1122321\",\r\n                        \"assigner\": {\r\n                            \"reference\": \"Organization/{{OrganizationId}}\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"active\": true,\r\n                \"name\": [\r\n                    {\r\n                        \"family\": \"Иванов\",\r\n                        \"given\": [\r\n                            \"Петр\",\r\n                            \"Михайлович\"\r\n                        ]\r\n                    }\r\n                ],\r\n                \"gender\": \"male\",\r\n                \"birthDate\": \"1980-01-01\",\r\n                \"deceasedBoolean\": false,\r\n                \"address\": [\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CoutryForAddresses\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CitizenshipCode\",\r\n                                            \"code\": \"BY\",\r\n                                            \"display\": \"Беларусь\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                            \"code\": \"72609920778\",\r\n                                            \"display\": \"Переулок Снежный\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            },\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/ApartmentRoom\",\r\n                                \"valueString\": \"кв. 11\"\r\n                            }\r\n                        ],\r\n                        \"use\": \"temp\",\r\n                        \"text\": \"Могилевская область, г.Могилев, Переулок Снежный, д.11\",\r\n                        \"postalCode\": \"212037\"\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"Condition/ExampleDiagnosisPrelEp4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"Condition\",\r\n                \"id\": \"ExampleDiagnosisPrelEp4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/FinalDiagnosis\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfDiagnosis\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfDiagnosisCode\",\r\n                                    \"code\": \"Preliminary\",\r\n                                    \"display\": \"Предварительный диагноз\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/AssertedDate\",\r\n                        \"valueDateTime\": \"2025-11-11\"\r\n                    }\r\n                ],\r\n                \"clinicalStatus\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"http://terminology.hl7.org/CodeSystem/condition-clinical\",\r\n                            \"code\": \"active\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"code\": {\r\n                    \"coding\": [\r\n                        {\r\n                            \"system\": \"https://fhir.by/ValueSet/InternClassificDiseases10\",\r\n                            \"code\": \"R99\",\r\n                            \"display\": \"Другие неточно обозначенные и неуточненные причины смерти\"\r\n                        }\r\n                    ]\r\n                },\r\n                \"subject\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"onsetDateTime\": \"2025-11-11\",\r\n                \"recordedDate\": \"2025-11-11\",\r\n                \"participant\": [\r\n                    {\r\n                        \"actor\": {\r\n                            \"reference\": \"PractitionerRole/{{PractitionerRole}}\"\r\n                        }\r\n                    }\r\n                ]\r\n            }\r\n        },\r\n        {\r\n            \"fullUrl\": \"EpisodeOfCare/ExampleEpisodeOfCare4\",\r\n            \"resource\": {\r\n                \"resourceType\": \"EpisodeOfCare\",\r\n                \"id\": \"ExampleEpisodeOfCare4\",\r\n                \"meta\": {\r\n                    \"profile\": [\r\n                        \"https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare\"\r\n                    ]\r\n                },\r\n                \"extension\": [\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/EmergencyTime\",\r\n                        \"valueDateTime\": \"2025-11-11T06:10:00Z\"\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallClassification\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/CallClassificationEmergCare\",\r\n                                    \"code\": \"primary\",\r\n                                    \"display\": \"Первичный\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CallAddress\",\r\n                        \"valueAddress\": {\r\n                            \"extension\": [\r\n                                {\r\n                                    \"url\": \"https://fhir.by/StructureDefinition/StreetGeoRegistry\",\r\n                                    \"valueCodeableConcept\": {\r\n                                        \"coding\": [\r\n                                            {\r\n                                                \"system\": \"https://fhir.by/ValueSet/StreetGeoRegistry\",\r\n                                                \"code\": \"726099207786084259\",\r\n                                                \"display\": \"11\"\r\n                                            }\r\n                                        ]\r\n                                    }\r\n                                }\r\n                            ],\r\n                            \"text\": \"Могилевская область, г. Могилев, Переулок Снежный, д.11\"\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/KindOfTraumaEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/KindOfTraumaGeneral\",\r\n                                    \"code\": \"disease-not-injury\",\r\n                                    \"display\": \"заболевание (состояние) не связанное с травмой\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"url\": \"https://fhir.by/StructureDefinition/ResultVisitingEmergencyCare\",\r\n                        \"valueCodeableConcept\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/ResultEmergencyCare\",\r\n                                    \"code\": \"left-in-place\",\r\n                                    \"display\": \"Оставлен на месте\"\r\n                                }\r\n                            ]\r\n                        }\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCareString\",\r\n                                \"valueString\": \"АД не определяется, ЧСС не определяется. Установлены признаки биологической смерти: трупные пятна, ригидность мышц, отсутствие дыхания и сердечной деятельности. ЭКГ - отсутствие сердечной деятельности\"\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/PerformedActivityEmergencyCare\"\r\n                    },\r\n                    {\r\n                        \"extension\": [\r\n                            {\r\n                                \"url\": \"https://fhir.by/StructureDefinition/CircumstancesOfDeath\",\r\n                                \"valueCodeableConcept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/CasesPatientDeath\",\r\n                                            \"code\": \"before-arrival\",\r\n                                            \"display\": \"До приезда бригады СМП\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ],\r\n                        \"url\": \"https://fhir.by/StructureDefinition/CaseDeath\"\r\n                    }\r\n                ],\r\n                \"identifier\": [\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Team-call-card-number\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"12345684\"\r\n                    },\r\n                    {\r\n                        \"type\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/IdentifierTypeEmergencyCare\",\r\n                                    \"code\": \"Number-team\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": \"524\"\r\n                    }\r\n                ],\r\n                \"status\": \"finished\",\r\n                \"type\": [\r\n                    {\r\n                        \"coding\": [\r\n                            {\r\n                                \"system\": \"https://fhir.by/ValueSet/EmergencyCrewType\",\r\n                                \"code\": \"intensive-care\",\r\n                                \"display\": \"бригада интенсивной терапии\"\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"reason\": [\r\n                    {\r\n                        \"use\": {\r\n                            \"coding\": [\r\n                                {\r\n                                    \"system\": \"https://fhir.by/ValueSet/EmergencyCallCategory\",\r\n                                    \"code\": \"emergency\",\r\n                                    \"display\": \"экстренный\"\r\n                                }\r\n                            ]\r\n                        },\r\n                        \"value\": [\r\n                            {\r\n                                \"concept\": {\r\n                                    \"coding\": [\r\n                                        {\r\n                                            \"system\": \"https://fhir.by/ValueSet/EmergencyCallReason\",\r\n                                            \"code\": \"loss-of-consciousness\",\r\n                                            \"display\": \"потеря пациентом сознания\"\r\n                                        }\r\n                                    ]\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"diagnosis\": [\r\n                    {\r\n                        \"condition\": [\r\n                            {\r\n                                \"extension\": [\r\n                                    {\r\n                                        \"url\": \"https://fhir.by/StructureDefinition/TypeOfDiagnosis\",\r\n                                        \"valueCodeableConcept\": {\r\n                                            \"coding\": [\r\n                                                {\r\n                                                    \"system\": \"https://fhir.by/ValueSet/TypeOfDiagnosis\",\r\n                                                    \"code\": \"mainDiagnosis\",\r\n                                                    \"display\": \"Основной диагноз\"\r\n                                                }\r\n                                            ]\r\n                                        }\r\n                                    }\r\n                                ],\r\n                                \"concept\": {\r\n                                    \"text\": \"Неуточненные причины смерти, в анамнезе пациента ишемическая болезнь сердца и гипертония\"\r\n                                },\r\n                                \"reference\": {\r\n                                    \"reference\": \"Condition/ExampleDiagnosisPrelEp4\"\r\n                                }\r\n                            }\r\n                        ]\r\n                    }\r\n                ],\r\n                \"patient\": {\r\n                    \"reference\": \"Patient/PatientTest\"\r\n                },\r\n                \"managingOrganization\": {\r\n                    \"reference\": \"Organization/{{OrganizationId}}\",\r\n                    \"extension\": [\r\n                        {\r\n                            \"url\": \"https://fhir.by/StructureDefinition/LocationUnitEmergCare\",\r\n                            \"valueReference\": {\r\n                                \"reference\": \"Location/{{LocationId}}\"\r\n                            }\r\n                        }\r\n                    ]\r\n                },\r\n                \"period\": {\r\n                    \"start\": \"2025-11-11\",\r\n                    \"end\": \"2025-11-11\"\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/$import",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"$import"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод получения статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						},
						{
							"name": "Метод проверки наличия эпизода оказания скорой медицинской помощи",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/EpisodeOfCare?_profile=https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare&_sort=-_lastUpdated",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"EpisodeOfCare"
									],
									"query": [
										{
											"key": "_profile",
											"value": "https://fhir.by/StructureDefinition/EpisodeOfEmergencyCare"
										},
										{
											"key": "_sort",
											"value": "-_lastUpdated"
										}
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение сводной информации о пациенте",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Patient/{{patientId}}/$everything?start={{actualDateStart}}&end={{actualDateEnd}}",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Patient",
										"{{patientId}}",
										"$everything"
									],
									"query": [
										{
											"key": "start",
											"value": "{{actualDateStart}}"
										},
										{
											"key": "end",
											"value": "{{actualDateEnd}}"
										}
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "6. Отмена импорта медицинской информации",
					"item": [
						{
							"name": "Отмена импорта медицинской информации",
							"request": {
								"method": "POST",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$cancel",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$cancel"
									]
								}
							},
							"response": []
						},
						{
							"name": "Получение статуса импорта пакета медицинской информации",
							"request": {
								"method": "GET",
								"header": [],
								"url": {
									"raw": "https://pp.cisz.by/api/fhir/Bundle/{{bundleId}}/$status",
									"protocol": "https",
									"host": [
										"pp",
										"cisz",
										"by"
									],
									"path": [
										"api",
										"fhir",
										"Bundle",
										"{{bundleId}}",
										"$status"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		}
	],
	"auth": {
		"type": "oauth2",
		"oauth2": [
			{
				"key": "useBrowser",
				"value": true,
				"type": "boolean"
			},
			{
				"key": "redirect_uri",
				"value": "https://oauth.pstmn.io/v1/callback",
				"type": "string"
			},
			{
				"key": "clientId",
				"value": "mis_agsr_web_application",
				"type": "string"
			},
			{
				"key": "tokenRequestParams",
				"value": [
					{
						"key": "origin",
						"value": "https://oauth.pstmn.io/v1/callback",
						"enabled": true,
						"send_as": "request_header"
					}
				],
				"type": "any"
			},
			{
				"key": "scope",
				"value": "profile email acr realm roles",
				"type": "string"
			},
			{
				"key": "accessTokenUrl",
				"value": "https://pp.cisz.by/auth/api/realms/iehr/token",
				"type": "string"
			},
			{
				"key": "authUrl",
				"value": "https://pp.cisz.by/auth/api/realms/iehr/auth",
				"type": "string"
			},
			{
				"key": "clientSecret",
				"value": "",
				"type": "string"
			},
			{
				"key": "grant_type",
				"value": "authorization_code_with_pkce",
				"type": "string"
			},
			{
				"key": "refreshRequestParams",
				"value": [],
				"type": "any"
			},
			{
				"key": "authRequestParams",
				"value": [],
				"type": "any"
			},
			{
				"key": "challengeAlgorithm",
				"value": "S256",
				"type": "string"
			},
			{
				"key": "addTokenTo",
				"value": "header",
				"type": "string"
			},
			{
				"key": "client_authentication",
				"value": "body",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"requests": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "practitioner_id",
			"value": ""
		},
		{
			"key": "organization_id",
			"value": ""
		},
		{
			"key": "locationId",
			"value": ""
		},
		{
			"key": "patientId",
			"value": ""
		},
		{
			"key": "bundleId",
			"value": ""
		},
		{
			"key": "StatusUrl",
			"value": ""
		}
	]
}